package com.zhiyi.coco.dao;

import com.zhiyi.coco.entity.Material;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MaterialMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Material record);

    int insertSelective(Material record);

    Material selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Material record);

    int updateByPrimaryKey(Material record);

    List<Material> getAll(@Param("fid") Integer fId);

    List<Material> getAllNoParam();

    Integer deleteByfId(@Param("fId") Integer fId);
}